<?php

/**
* 
*/
class IndexController extends Controller
{
    
    public function index()
    {
        // $user = new Model('stu');

        // $data = $user->where(['sex'=>'男'])->order('age desc')->limit(1)->select();

        // var_dump($data);
        // 
        $stuModel = new StuModel();

        $data = $stuModel->getTopAge();

        var_dump($data);


        Ftime();



        // 分配变量
         $this->assign('bbb',90);
         $this->assign('xbs',100000);
         $this->assign('name',100008880);
         $this->assign('data',$data);
        //引视图
         $this->display();
    }

    public function show($value='')
    {
        $stuModel = new StuModel();

        $data = $stuModel->getTopAge();

        var_dump($data);


        echo 'show';
    }
}